#include <iostream>
#include <string>

using namespace std;

void test()
{
    int a = 0x44332211;
    unsigned char *p = reinterpret_cast<unsigned char *>(&a);
    for (size_t i = 0; i < 4; i++)
    {
        cout << hex << static_cast<int>(*(p + i)) << endl;
    }
    // printf("%x", *p);
}

int main(int argc, char **argv)
{
    test();
    return 0;
}